import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'select-class',
            component: () => import('./components/SelectClass.vue'),
        },
        {
            path: '/about',
            name: 'students-list',
            component: () => import('./components/StudentsList.vue'),
        },
        {
            path: '/raffle',
            name: 'raffle',
            component: () => import('./components/RaffleComponent.vue'),
        },
        {
            path: '*',
            redirect: '/',
        },
    ],
});
